module Base
{
    model Liaz300Semi_TrunkDoor
    {
        mesh = vehicles/LIAZ154_Body|TrunkDoor,
        shader = vehicle,
		static = FALSE,
		boneWeight = TrunkDoorBone 1.0,
        scale = 1,


		
    }

	template vehicle Liaz300Semi_trunkdoor
	{
        template = TrunkDoor,

		part TrunkDoor
		{
            model Default
			{
				file = Liaz300Semi_TrunkDoor,
			}

			category = bodywork,
            
			area = TruckBed,
            mechanicRequireKey = true,
			repairMechanic = true,

			anim Close
			{                        
                                sound = VehicleTrunkCloseVan,       
				anim = TrunkDoor_closing,
				reverse = FALSE,
				rate = 3.0,
			}
			anim Open
			{
                                sound = VehicleTrunkOpenVan,
				anim = TrunkDoor_closing,
				reverse = TRUE,
				rate = 3.0,
			}
			anim Closed
			{
				anim = TrunkDoor_closing,
				reverse = TRUE,
				animate = FALSE,
			}
			anim Opened
			{
				anim = TrunkDoor_closing,
				reverse = FALSE,
				animate = FALSE,
			}

			anim ActorOpen
			{
				anim = WindowOpenSuccess,
				rate = 0.15,
				angle = 0.0 0.0 0.0,
			}
			anim ActorClose
			{
				anim = Attack_Shove,
				rate = 0.3,
				angle = 0.0 0.0 0.0,
			}

			table install
			{
				recipes = Intermediate Mechanics,
				test = Vehicles.InstallTest.Default,
				complete = ATATuning2.InstallComplete.Door,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
				test = Vehicles.UninstallTest.Default,
				complete = ATATuning2.UninstallComplete.Door,
				requireUninstalled = ATA2VisualSpoilerRear,
			}

			lua
			{
				create = ATATuning2.Create.DefaultModel,
                init = ATATuning2.Init.Door,
                update = Vehicles.Update.TrunkDoor,
                use = Vehicles.Use.TrunkDoor,
			}
		}
	}
}